#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  callin.py
#       Author @  Huoty
#  Create date @  2015-08-12 10:59:11
#  Description @  
# *************************************************************

import time, functools

def log(func):
    @functools.wraps(func)
    def wrapper(*args, **kw):
        #wrapper.__name__ = func.__name__
        print "call %s." % func.__name__
        return func(*args, **kw)
    return wrapper

@log
def now():
    print time.asctime()

# Script starts from here

now()
print now.__name__
